/*
 * @copyright: ChengXuan
 * @Author: ding
 * @Date: 2022-10-31 14:18:41
 * @LastEditors: ding
 * @LastEditTime: 2022-10-31 14:21:51
 * @Description: file content
 */

export default {
	/** 自动发送名单 ipc 通讯 action */
	autoSendPersonExecAction: "__baseHaiQing/AutoPersonManager/sendPerson/ipc/action",
	/** 自动删除名单 ipc 通讯action */
	autoDeletePersonExecAction: "__baseHaiQing/AutoPersonManager/deletePerson/ipc/action",
	/** 一些redis key的前缀 */
	redisPrefix: {
		/**
		 * 缓存设备心跳时间的redis前缀
		 *
		 * - 记录心跳时间主要用于更新数据库状态以标记设备是否在线
		 */
		heartbeatTime: `device:hc:heartbeatTime`,
	},
	mqtt: {
		/** 设备上下线订阅 */
		onoffTopic: "mqtt/face/basic",
		/** 设备认证识别结果订阅 */
		verifyRecordTopic: "mqtt/face/+/Rec",
		/** 设备陌生人抓拍订阅 */
		snapRecordTopic: "mqtt/face/+/Snap",
		/** 二维码订阅 */
		qrcodeTopic: "mqtt/face/+/QRCode",
		/** 设备回复服务器消息的话题 */
		ackTopic: "mqtt/face/+/Ack",
		/** 心跳话题 */
		heartbeatTopic: "mqtt/face/heartbeat",
	},
	/** 广域网模式封装中的常量 */
	wan: {
		/** 命令结果存入redis时的前缀 */
		cmdResultRedisKeyPrefix: "device:hc:wan:cmdResult",
	},
};
